package spring.cloud.tasks.api.service;

import java.util.List;
import java.util.Map;

public interface NameSpaceService {
    /**
     * 把源域的作业导入到目标域
     *
     * @param srcNamespace
     * @param destNamespace
     * @param createdBy
     * @return 导入成功和导入失败作业列表
     * @throws RuntimeException
     */
    Map<String, List> importTasksFromNameSpaceToNameSpace(String srcNamespace, String destNamespace, String createdBy)
            throws RuntimeException;

    /**
     * 删除域
     *
     * @param namespace
     * @throws RuntimeException
     */
    void deleteNamespace(String namespace) throws RuntimeException;

}
